﻿@model QizSession
@{
    var PreviewOnly = ViewBag.ForceEdit != true && (Model.ID != "-1" || "True".Equals(Request["PreviewOnly"], StringComparison.CurrentCultureIgnoreCase));
}
@*@Helpers.Shadowbox(
        @<table class="width col4" style="width:100%;">
            <tr>
                <th colspan="4" align="left">
                    <div class="catalog-title">
                        <h2>@Model.QizSubject.Title</h2>
                    </div>
                </th>
            </tr>
            
            <tr>
                <th colspan="4" align="left">
                    <div id="ctrl-hospdepart" class="error-title" style="font-size: 1.2em; font-weight: bold;">
                        医院科室
                    </div>
                </th>
            </tr>
            
            <tbody id="block-hospdepart">
            <tr>
                <th align="left">                    
                    医院名称：              
                </th>
                <td align="left">
                    <span title="@Model.QizSubject.Hospital.HospName"> @Html.DisplayFor(model => Model.QizSubject.Hospital.HospCode)</span>
                </td>
                <th align="right">                      
                    所属病区：           
                </th>
                <td align="left">
                    @Html.DisplayFor(model => Model.QizSubject.Department.DepName)
                </td>
            </tr>
            @if (Model.ID != "-1")
            {
                <tr>
                    <th align="left">
                        患者姓名：                        
                    </th>
                    <td align="left">@Html.DisplayFor(model => Model.aspnet_Users.UserName)</td>
                    <th align="right">
                        填报时间：                        
                    </th>
                    <td align="left">@Helpers.DateTimeString(Model.CreationTime)</td>
                </tr>
            }
            </tbody>
        </table>       
)*@ 

<h3 style="padding-left:0.5em;">@Model.QizSubject.Title</h3>
<div class="warnning-block" data-role="collapsible" data-inset="false" data-corners="false">
    <h2>医院科室</h2>
    <p>
        <h4>医院名称：</h4><span title="@Model.QizSubject.Hospital.HospName">@Html.DisplayFor(model => Model.QizSubject.Hospital.HospCode)</span>        
    </p>
    <p>
        <h4>所属病区：</h4><span>@Html.DisplayFor(model => Model.QizSubject.Department.DepName)</span>
    </p>
    @if (Model.ID != "-1")
    {
        <p>
            <h4>患者姓名：</h4><span>@Html.DisplayFor(model => Model.aspnet_Users.UserName)</span>            
        </p>
        <p>
            <h4>填报时间：</h4><span>@Helpers.DateTimeString(Model.CreationTime)</span>
        </p>
    }
</div>
